package com.allwees.bs.module.pms.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.allwees.bs.module.pms.dto.ProductDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @Author linqiu
 * @create 2019/11/1 16:17
 */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExportProductVo extends BaseRowModel {
    @ExcelProperty(value = "*主sku编号",index = 0)
    private String no;

    @ExcelProperty(value = "*主sku名称",index = 1)
    private String nameCn;

    @ExcelProperty(value = "主sku英文名称",index = 2)
    private String nameEn;

    @ExcelProperty(value = "商品目录(二级)",index = 3)
    private String category;

    @ExcelProperty(value = "备注信息",index = 4)
    private String remark;

    @ExcelProperty(value = "尺寸长（cm）",index = 5)
    private String length;

    @ExcelProperty(value = "尺寸高（cm）",index = 6)
    private String height;

    @ExcelProperty(value = "销售员",index = 7)
    private String salesor;

    @ExcelProperty(value = "开发员",index = 8)
    private String developer;

    @ExcelProperty(value = "美工",index = 9)
    private String artDesigner;

    @ExcelProperty(value = "包材",index = 10)
    private String packingMaterials;

    @ExcelProperty(value = "可包装个数",index = 11)
    private String packages;

    @ExcelProperty(value = "库存图片地址",index = 12)
    private String imgUrl;

    @ExcelProperty(value = "是否带电池（0/1）",index = 13)
    private String isWithBattery;

    @ExcelProperty(value = "是否侵权(0/1)",index = 14)
    private String isTort;

    @ExcelProperty(value = "是否带磁（0/1）",index = 15)
    private String isMagnetism;

    @ExcelProperty(value = "是否粉末（0/1）",index = 16)
    private String isPowder;

    @ExcelProperty(value = "液体化妆品（非液体、液体(化妆品)、非液体(化妆品)、液体(非化妆品)）",index = 17)
    private String liquid;

    @ExcelProperty(value = "关联子SKU（多个用英文\",\"隔开）",index = 18)
    private String relatedSubSkus;

    public ExportProductVo(ProductDto product) {
        no = product.getCustomNo();
        nameCn = product.getName();
        nameEn = product.getName();
        imgUrl = product.getMainPhoto();
    }
}
